package com.shaoyu.tools.testcase.flow;

import com.alibaba.fastjson.JSON;
import com.shaoyu.spring.study.dto.BaseRequest;
import com.shaoyu.spring.study.dto.BaseResponse;
import com.shaoyu.spring.study.runner.HandlerRunner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Desc :
 * @Author: shaoyu
 * @Date : 2022/3/1 15:09
 */
@Service
public class FlowTestService {

    @Autowired
    HandlerRunner runner;

    public static final String GROUP = "FlowTestService";
    // http://localhost:8888/test/flowTestService/flow/t
    public OrderDTO flow(){
        OrderDTO order = new OrderDTO();
        OrderDTO outOrder = new OrderDTO();
        runner.execute(GROUP, BaseRequest.build(order),BaseResponse.build(outOrder));
        return outOrder;
    }
}
